package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * idx_theme_words_source
 * @author 
 */
public class IdxThemeWordsSource implements Serializable {
    /**
     * 主键
     */
    private String id;

    /**
     * 本系统主题词id
     */
    private Integer themeWordsId;

    /**
     * 数据来源
     */
    private String datasource;

    /**
     * 外部来源处的编号
     */
    private String refCode;

    /**
     * 名称
     */
    private String name;

    /**
     * 创建时间
     */
    private String createBy;

    /**
     * 创建人
     */
    private Date createTime;

    /**
     * 描述
     */
    private String description;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getThemeWordsId() {
        return themeWordsId;
    }

    public void setThemeWordsId(Integer themeWordsId) {
        this.themeWordsId = themeWordsId;
    }

    public String getDatasource() {
        return datasource;
    }

    public void setDatasource(String datasource) {
        this.datasource = datasource;
    }

    public String getRefCode() {
        return refCode;
    }

    public void setRefCode(String refCode) {
        this.refCode = refCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        IdxThemeWordsSource other = (IdxThemeWordsSource) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getThemeWordsId() == null ? other.getThemeWordsId() == null : this.getThemeWordsId().equals(other.getThemeWordsId()))
            && (this.getDatasource() == null ? other.getDatasource() == null : this.getDatasource().equals(other.getDatasource()))
            && (this.getRefCode() == null ? other.getRefCode() == null : this.getRefCode().equals(other.getRefCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getThemeWordsId() == null) ? 0 : getThemeWordsId().hashCode());
        result = prime * result + ((getDatasource() == null) ? 0 : getDatasource().hashCode());
        result = prime * result + ((getRefCode() == null) ? 0 : getRefCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", themeWordsId=").append(themeWordsId);
        sb.append(", datasource=").append(datasource);
        sb.append(", refCode=").append(refCode);
        sb.append(", name=").append(name);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", description=").append(description);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}